<template>
	<view class="content">
		<u-navbar title="资金流水" :placeholder="true" :autoBack="true">
			<view class="u-nav-slot" slot="right" @click="orderbyChange">
				筛选
			</view>
		</u-navbar>
		<view class="record">
			<view class="record-item">
				<view class="order">
					<view class="order-num">
						<text>订单编号：</text>1a3533d2-a993-4633-b846-d86d13b4d14b
					</view>
					<image src="../../../static/home/copy.jpg" mode=""></image>
				</view>
				<view class="order-info">
					<view class="info-title">
						余额转出
					</view>
					<view class="info-num">
						￥-4154
					</view>
				</view>
				<view class="time">
					<view class="time-text">
						2024-09-27 13:12:02
					</view>
					<view>
						余额0.4
					</view>
				</view>
			</view>
		</view>
		<fjj-condition ref='condition' @touchmove.stop :color="color" :list="menuList" :defaultValue="defaultValue"
			@result="resultConditon" />
	</view>
</template>

<script>
	import fjjCondition from '@/components/fjj-condition/fjj-condition.vue';
	export default {
		components: {
			fjjCondition,
		},
		data() {
			return {
				color: '#4D7BFE',
				hasChoose: false,
				defaultValue: {
					custom2: 1,
					time1: ['2021/02/01', '2021/02/03'],
				},
				menuList: [{
					'title': '渠道',
					'type': 'custom',
					'key': 'custom2',
					'isMutiple': false, //单选
					'detailList': [{
						title: '保证金流水',
						value: "1",
					}, {
						title: '红利流水',
						value: "2",
					}],
				}, {
					'title': '日期范围',
					'type': 'range',
					'key': 'time1',
					'minName': 'time1MinName',
					'maxName': 'time1MaxName',
				}]
			}
		},
		onLoad() {

		},
		methods: {
			resultConditon(obj) {
				this.$refs.condition.visibleDrawer = false;
				this.hasChoose = obj.hasChoose;
				console.log(obj);
			},
			orderbyChange(obj) {
				this.$refs.condition.visibleDrawer = true;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		min-height: 100vh;
		background-image: url('../../../static/home/page-bg.png');
		background-repeat: no-repeat;
		background-size: 100% 100%;
		padding: 30rpx;
		.u-nav-slot {
			font-size: 26rpx;
		}

		.record {
			.record-item {
				padding: 20rpx;
				border-radius: 20rpx;
				background-color: #fff;

				.order {
					display: flex;
					justify-content: space-between;
					align-items: center;

					.order-num {
						font-size: 24rpx;
						color: #000;
						font-weight: bold;

						text {
							color: #999;
						}
					}

					image {
						width: 25rpx;
						height: 25rpx;
					}
				}

				.order-info {
					display: flex;
					justify-content: space-between;
					align-items: center;
					margin-top: 30rpx;
					.info-title {
						font-size: 28rpx;
						color: #000;
						font-weight: bold;
					}

					.info-num {
						font-size: 26rpx;
						color: #ff0000;
					}
				}
				.time {
					font-size: 24rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;
					margin-top: 20rpx;
					color: #999;
					.time-text {
						font-size: 26rpx;
						font-weight: bold;
					}
				}

			}
		}
	}
</style>